<%--
 * edit.jsp
 *
 * Copyright (C) 2013 Universidad de Sevilla
 * 
 * The use of this project is hereby constrained to the conditions of the 
 * TDG Licence, a copy of which you may download from 
 * http://www.tdg-seville.info/License.html
 --%>

<%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<%@taglib prefix="jstl"	uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib prefix="security" uri="http://www.springframework.org/security/tags"%>
<%@taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@taglib prefix="acme" tagdir="/WEB-INF/tags" %>

<form:form id="form" name="form" action="painting/customer/edit.do"
	modelAttribute="paintingForm">
	<form:hidden path="id"/>
	
	<acme:textbox path="title" code="painting.title" readonly="${readonly}"/>	
	<br/>
	<acme:textbox  path="author" code="painting.author" readonly="${readonly}"/>
	<br/>
	<acme:textbox path="appraisal" code="painting.appraisal" readonly="${readonly}"/>	
	<br/>
	<acme:textbox path="date" code="painting.date" readonly="${readonly}"/>
	<br/>
	
	<jstl:if test="${readonly != \"readonly\"}">
		<spring:message code="painting.confirm.save" var="saveMessage" />
		<acme:submit name="save" code="painting.save" onclick="return confirm('${saveMessage}')" />&nbsp; 
	</jstl:if>
	
	
	<acme:cancel code ="painting.cancel" url="painting/list.do"/>
	<br/>
	
</form:form>

